package com.bike.bikeserver.controller.system;


import com.bike.bikeserver.domain.vo.ZoneBikeSummaryVo;
import com.bike.bikeserver.service.IZoneBikeSummaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author ZZX
 * @since 2023-08-21
 */
@RestController
@RequestMapping("sys/zoneBikeSummary")
public class ZoneBikeSummaryController
{
    @Autowired
    IZoneBikeSummaryService zoneBikeSummaryService;

    /**
     * 获取单车统计条形图数据
     *
     * @return
     */
    @GetMapping("getZoneBikeColumnList")
    public List<ZoneBikeSummaryVo> getZoneBikeColumnList()
    {
        return zoneBikeSummaryService.getZoneBikeColumnList();
    }

    /**
     * 获取共享单车统计饼状图数据
     *
     * @return
     */
    @GetMapping("getZoneBikePie")
    public List<ZoneBikeSummaryVo> getZoneBikePie()
    {
        return zoneBikeSummaryService.getZoneBikePie();
    }

    /**
     * 获取共享单车8月份的单车流量折线图数据
     *
     * @return
     */
    @GetMapping("getZoneBikeMultiLine")
    public List<ZoneBikeSummaryVo> getZoneBikeMultiLine()
    {
        return zoneBikeSummaryService.getZoneBikeMultiLine();
    }

}

